.browsehappy {
  margin: 0.2em 0;
  background: #ccc;
  color: #000;
  padding: 0.2em 0;
}

body {
  padding: 0;
}

/* Everything but the jumbotron gets side spacing for mobile first views */
.header,
.marketing,
.footer {
  padding-left: 15px;
  padding-right: 15px;
}

/* Custom page header */
.header {
  border-bottom: 1px solid #e5e5e5;
  margin-bottom: 10px;
}
/* Make the masthead heading the same height as the navigation */
.header h3 {
  margin-top: 0;
  margin-bottom: 0;
  line-height: 40px;
  padding-bottom: 19px;
}

/* Custom page footer */
.footer {
  padding-top: 19px;
  color: #777;
  border-top: 1px solid #e5e5e5;
}

.container-narrow > hr {
  margin: 30px 0;
}

/* Main marketing message and sign up button */
.jumbotron {
  text-align: center;
  border-bottom: 1px solid #e5e5e5;
}
.jumbotron .btn {
  font-size: 21px;
  padding: 14px 24px;
}

/* Supporting marketing content */
.marketing {
  margin: 40px 0;
}
.marketing p + h4 {
  margin-top: 28px;
}

/* Responsive: Portrait tablets and up */
@media screen and (min-width: 768px) {
  .container {
    max-width: 730px;
  }

  /* Remove the padding we set earlier */
  .header,
  .marketing,
  .footer {
    padding-left: 0;
    padding-right: 0;
  }
  /* Space out the masthead */
  .header {
    margin-bottom: 30px;
  }
  /* Remove the bottom border on the jumbotron for visual effect */
  .jumbotron {
    border-bottom: 0;
  }
}

@media (min-width: 768px){
  .sidebar {
    z-index: 1;
    position: absolute;
    width: 210px;
    margin-top: 51px;
  }

  #page-wrapper {
    position: inherit;
    margin: 0 0 0 210px;
    padding: 0 30px;
    border-left: 1px solid #e7e7e7;
  }

}

.sidebar{
  margin: 0;
  height: 100%;
}

body{
  background: white;
}

#page-wrapper{
  border: none;
}
.product-list{
  display: flex;
  flex-wrap:wrap;
  align-items:stretch;
  width: 100%;
}
.product-list li{
  position: relative;
  width: 165px;
  margin: 0 5px;
}
.product-list .panel-body{
  padding: 5px;
}
.product-list .panel-footer{
  padding: 5px;
}
.product-list li .thumbnail{
  height: 150px;
  position: relative;
  margin-bottom: 0;
}
.product-list li img{
  max-width: 100%;
  max-height: 150px;
  margin: auto;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
}

.product-list .panel-heading{
  cursor: move;
}
.panel-title{
  text-overflow:ellipsis;
  overflow: hidden;
  white-space: nowrap;
  cursor: move;
  font-size: 12px;
  line-height: 1.5;
}

.module-list li{
  float: left;
  width: 50%;
  margin-top: 5px;
}
.module-list-all{
  position: sticky;
  right: 0;
}
.product-add{
  position: fixed;
  right: 10px;
  bottom: 10px;
}

.ace_editor {
  height: 400px;
}


#side-menu li {
  position: relative;
}
#side-menu > li ul {
  position: absolute;
  left: 100%;
  top: 0;
  min-width: 200px;
  display: none;
  z-index: 1000;
}
#side-menu li:hover > ul,
#side-menu li:hover > ul.collapse {
  display: block !important;
  height: auto !important;

  background: #f8f8f8;
  visibility: visible;
}
#side-menu .arrow{
  transform:rotate(180deg);
}
.sidebar{
  z-index: 999;
}
.sidebar.ng-hide{
  width: 0;
}
.page-header-sm{
  padding-bottom: 9px;
  margin: 10px 0 10px;
  border-bottom: 1px solid #eee;
}
.alert-sm{
  padding: 10px;
  margin-bottom: 5px;
  border: 1px solid transparent;
  border-image-source: initial;
  border-image-slice: initial;
  border-image-width: initial;
  border-image-outset: initial;
  border-image-repeat: initial;
  border-radius: 4px;
}
.toggleSidebar{
  position: absolute;
  left:300px;
  top: 50%;
  transform:translate(0,-50%);
  background: #ccc;
  padding: 20px 0;
}
.toggleSidebar[ng-if="showSidebar"]{
  left:0px;
}
#page-wrapper{
  transition:all 0.3s;
}
#page-wrapper.active{
  margin: 0;

}
.icon-soldout {
    position: absolute;
    left: 50%;
    top: 50%;
    text-align: center;
    color: #fff;
    background: url(http://img0.fengqucdn.com/cmsres/20150923/a76eef8e-5e19-4e54-a37c-f94542892288.png) no-repeat
}

.icon-soldout-large {
    width: 121px;
    height: 121px;
    line-height: 121px;
    margin-left: -60px;
    margin-top: -60px;
    font-size: 16px
}

.icon-soldout-big {
    width: 100px;
    height: 100px;
    line-height: 100px;
    margin-left: -50px;
    margin-top: -50px;
    font-size: 14px;
    background-position: -146px -10px
}

.icon-soldout-normal {
    width: 81px;
    height: 81px;
    line-height: 80px;
    margin-left: -40px;
    margin-top: -40px;
    font-size: 14px;
    background-position: -272px -20px
}

ul[dnd-list] .dndPlaceholder:before{
  content: '拖动到这里';
}

ul[dnd-list] .dndDraggingSource {
    display: none;
}

.pageDrag ul[dnd-list] .dndPlaceholder{
  list-style: none;
  height: 50px;
  line-height: 50px;
  border:1px dashed #ccc;
  background: #eee;
  text-align: center;
}

.cmsDataDrag ul[dnd-list] .dndPlaceholder{
  list-style: none;
  border:1px dashed #ccc;
  background: #eee;
  text-align: center;
}
.page-header{
  margin:0;
}
@media (min-width: 992px) {
    .modal-dialog .modal-lg {
       width:900px;
    }
}

.thumbnail>img{
  height: 96px;
  overflow: hidden;
}